<template>
  <view class="point-shop">
    <van-search placeholder="请输入商品关键词" />
    <!-- <swiper class="my-swiper" :autoplay="3000">
      <swipe-item v-for="(image) in swiperImgList" :key="image.id"> <img :src="image.url" alt=""></swipe-item>
    </swiper> -->
    <view class="show">
      <product-list  :sid="sid"/>
    </view>
  </view>
</template>


<script type="text/javascript">

export default {
  head() {
    return {
      title: "积分商城",
    };
  },
  data() {
    return {
      images: [],
      list: [],
      loading: false, //加载状态
      finished: false, //是否完成加载
      refreshing: false, //是否正在上拉刷新
      swiperImgList:[],
      sid: '',
    };
  },

  created() {

  },
  onLoad(e) {
		this.sid = e.sid;
  },
  methods: {
    // onLoad() {
    //   var that = this;
    //   that.$axios
    //     .get("/getIntegralWaresInfoList", {
    //       params: {
    //         stationId: this.$route.params.sid,
    //       },
    //     })
    //     .then((res) => {
    //       if (res.data.retCode == 0) {
    //         that.list = res.data.data; //追加数据
    //         // 加载状态结束
    //         that.loading = false;
    //         that.finished = true;
    //       }
    //     });
    // },
    // onRefresh() {
    //   // 清空列表数据
    //   that.finished = true;
    //   // 重新加载数据
    //   // 将 loading 设置为 true，表示处于加载状态
    //   that.loading = true;
    //   that.onLoad();
    // },
    // initSwiperImg() {
    //   this.$axios
    //     .$get("/getIntegralShopPicInfoList", {
    //       params: {
    //         enterpriseId: this.enterpriseId,
    //       },
    //     })
    //     .then((res) => {  
    //       if(res.retCode === 0){
    //         this.swiperImgList = res.data
    //       }
    //     });
    // },
  },
};
</script>

<style scope>
.point-shop * {
  box-sizing: border-box;
}
.point-shop .my-swipe .van-swipe-item {
  color: #fff;
  width:320rpx;
  text-align: center;
  border-radius: 4vw;
  box-sizing: border-box;
}
.point-shop .my-swipe .van-swipe-item img{
  width:100%;
  height:100%;  
  border-radius: 4vw;
}
.point-shop {
  width: 92vw;
  margin: 0 auto;
}
.point-shop .list {
  width: 92vw;
}
.point-shop .list .list-item {
  display: flex;
  margin-top: 30px;
  width: 92vw;
  height: 28.5vw;
}
.point-shop .list .list-item .list-item-left {
  width: 28.5vw;
  height: 28.5vw;
  border: 0.26vw solid #eeeeee;
  flex-shrink: 0;
}
.point-shop .list .list-item .list-item-left img {
  display: inline-block;
  width: 100%;
  height: 100%;
  border-radius: 3vw;
}
.point-shop .list .list-item .list-item-right {
  margin-left: 3vw;
  width: 60.5vw;
  color: red;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  font-size: 4.266vw;
  font-weight: 400;
  color: #111111;
  line-height: 6vw;
  height: 28.5vw;
}
.point-shop .list .list-item .list-item-right .item-right-top {
  width: 60.5vw;
  height: 12vm;
  flex-shrink: 0;
  word-break: break-all;
  height: 20vw;
}

.point-shop .list .list-item .list-item-right .item-right-top {
  width: 60.5vw;
  height: 12vm;
  flex-shrink: 0;
}
</style>
